package com.ks.BusAlarm;

import android.app.TabActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TabHost;

public class BusAlarm extends TabActivity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		final TabHost tb = getTabHost();

		Intent intentSearch = new Intent(this, SearchView.class)
				.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

		tb.addTab(tb.newTabSpec("tab1").setIndicator("목적지")
				.setContent(intentSearch));

		Intent intentPref = new Intent(this, PreferenceUI.class)
				.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);

		tb.addTab(tb.newTabSpec("tab1").setIndicator("설정")
				.setContent(intentPref));

	}
}